package com.colza.service;

import javax.servlet.ServletContext;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Request;
import javax.ws.rs.core.UriInfo;


/**
 * 
 * Service to manage connexion (login, password)
 *
 */
@Path("/connexion")
public class ServiceConnexion {
	@Context
	ServletContext context;
	@Context
	UriInfo uriInfo;
	@Context
	Request request;
	
	/**
	 * 
	 * @param login
	 * @param password
	 * @return the idUser (default 0)
	 */
	public int userConnexion(String login,String password){
		
		return 0;//should change to idUser
	}
	
	@GET
	@Path("hello")
	@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
    public String afficherSalut() {

          

          return "Salut pikh pikh ";

    }

}
